<%@ page language="java" pageEncoding="UTF-8"%>
<%
	String ctx = request.getContextPath();
	String channelPath = request.getRequestURI().substring(ctx.length());
	String page_root_url = ctx;
	String page_root = "";
	String page_project = "";
	String page_doc = "";
	String page_code = "";
	String page_article = "";
	String page_wiki = "";
	String page_company = "";
	if("".equals(channelPath) || channelPath.startsWith("/main")){
		page_root = "class=\"selected\"";
	}else if(channelPath.startsWith("/project")){
		page_project = "class=\"selected\"";
	}else if(channelPath.startsWith("/doc")){
		page_doc = "class=\"selected\"";
	}else if(channelPath.startsWith("/code")){
		page_code = "class=\"selected\"";
	}else if(channelPath.startsWith("/article")){
		page_article = "class=\"selected\"";
	}else if(channelPath.startsWith("/wiki")){
		page_wiki = "class=\"selected\"";
	}else if(channelPath.startsWith("/company")){
		page_company = "class=\"selected\"";
	}
	if(ctx.equals("")){
		page_root_url = "/";
	}
%>
<div id="header">
  
  <table class="table_layout" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td id="banner_left">
        <a href="<%=page_root_url%>">
          <img src="<%=ctx%>/images/banner_left.gif">
        </a>
      </td>
      <td id="banner_right">weijx的个人网站</td>
    </tr>
  </table>
  
  <table class="table_layout" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td>
        <div id="header_nav_wrapper">
          <ul id="header_nav">
            <li><a href="<%=page_root_url%>" <%=page_root%>>首页</a></li>
            <li>|</li>
            <li><a href="<%=ctx%>/project/main.do" <%=page_project%>>Java开源项目</a></li>
            <li>|</li>
            <li><a href="<%=ctx%>/jetty.html">Jetty中文文档</a></li>
          </ul>
        </div>
      </td>
    </tr>
  </table>
  
</div>